package top.du1888.ai.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.du1888.ai.domain.TCar;
import top.du1888.ai.mapper.CarMapper;
import top.du1888.ai.service.CarService;

import java.util.List;

@Service
public class CarServiceImpl implements CarService {

    @Autowired
    public CarMapper carMapper;

    @Override
    public List<TCar> getAll() {
        List<TCar> carList = carMapper.getAll();
        return carList;
    }

    @Override
    public TCar getCarById(int id) {
        return carMapper.getCarById(id);
    }

    @Override
    public TCar getUserByParam(int id) {
        return carMapper.getUserByParam(id);
    }
}
